JFLAGS = -g
JC = javac
JVM= java
JDC=javadoc
FILE=
.SUFFIXES: .java .class
.java.class:
	$(JC) $(JFLAGS) $*.java

CLASSES = \
	AttachableElement.java \
	Ball.java \
	ConfigurationMenuListener.java \
	Drawable.java \
	FixedHook.java \
	GBall.java \
	GFixedHook.java \
	GRubberBand.java \
	GSpring.java \
	MouseListener.java \
	MyWorld.java \
	PhysicsElement.java \
	PhysicsLab.java \
	PhysicsLabPanel.java \
	RubberBand.java \
	Spring.java \
	Vector2D.java \
	WorldControlMenuListener.java

MAIN = PhysicsLab

default: classes

classes: $(CLASSES:.java=.class)

doc:  
	$(JDC) -d documentation *.java

run: $(MAIN).class 
	$(JVM) $(MAIN) $(FILE)

clean:
	$(RM) *.class
